/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const WeChatAppRouterMap = {
  id: 180,
  path: '/wxApp',
  component: Layout,
  name: '小程序管理',
  redirect: '/wxApp/agentWxApp',
  meta: {title: '小程序管理', icon: 'wxapp', power: 'setting'},
  alwaysShow: true,
  showMode: 'DEFAULT',
  children: [
    {
      id: 231,
      path: 'publishWxApp',
      name: '发布小程序',
      component: resolve => require(['@/views/wxapp/publish'], resolve),
      meta: {title: '发布小程序', icon: 'project', power: 'setting.publishWxApp'}
    },
    {
      id: 182,
      path: 'agentWxApp',
      name: '客户小程序',
      component: resolve => require(['@/views/wxapp/agentWxapp'], resolve),
      meta: {title: '用户端', icon: 'project', power: 'setting.agentWxApp'}
    },
    {
      id: 181,
      path: 'staffWxApp',
      name: '内部小程序',
      component: resolve => require(['@/views/wxapp/staffWxapp'], resolve),
      meta: {title: '管理端', icon: 'project', power: 'setting.staffWxApp'}
    }
  ]
}

export default WeChatAppRouterMap;
